// app.js
App({

  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    wx.cloud.init({
      env : "intelligence-eyelas-5cp2d403d836"
    })

    wx.cloud.callFunction({
      name : 'get_openID',
      success : (res) =>{
        this.globalData.user_openID = res.result.userInfo.openId
      },
    })

   
  },

  globalData: {
   user_openID : ""
    //用户的登录状态，登录为true，未登录为false, 在storage中
  },
  
})
